package com.qianyue.命令模式;

/**
 * 客户端
 *
 * @author qian yue
 * @version v1.0.0
 * @since 2025/2/4 22:01
 */
public class Client {
    public static void main(String[] args) {
        Waitor waitor = new Waitor();
        SeniorChef seniorChef = new SeniorChef();
        // 1号桌
        Order order = new Order();
        order.setDiningTable(1);
        order.setFoodDic("西红柿鸡蛋", 1);
        order.setFoodDic("虾饺", 2);
        order.setFoodDic("爆炒腰子", 1);
        waitor.addCommand(new OrderCommand(order, seniorChef));

        // 2号桌
        Order order2 = new Order();
        order2.setDiningTable(2);
        order2.setFoodDic("西红柿鸡蛋", 2);
        order2.setFoodDic("虾饺", 2);
        order2.setFoodDic("爆炒腰子", 3);
        waitor.addCommand(new OrderCommand(order2, seniorChef));

        waitor.orderUp();
    }
}
